﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bankomat.Business
{
    interface IBankomat
    {
        /// <summary>
        /// Gets whether a user is loggedd in or not
        /// </summary>
        bool IsLogged { get; }

        /// <summary>
        /// Logs in the specified user
        /// </summary>
        /// <param name="token">The users token</param>
        /// <returns>True if login was successful</returns>
        bool LogIn(string token);

        /// <summary>
        /// Logs out the specified user
        /// </summary>
        /// <returns></returns>
        bool LogOut();
    }
}
